<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="div1">
			<button>button 1</button>
			<button>button 2</button>
			<button>button 3</button>
		</div>
		<script>
			var btns = document.querySelectorAll('button');
			/* for(let i=0;i<btns.length;i++){
				btns[i].addEventListener('click',fun1);
			} */
			div1.addEventListener('click',fun1);
			function fun1(e){
				console.log(e.type);
				//console.log(event.type);
				console.log("target返回值："+e.target);
				console.log("currentTarget返回值："+e.currentTarget)
				console.log(this.innerHTML);
			}
		</script>
	</body>
</html>